package com.yunqiao.service.api;

import com.yunqiao.service.api.entity.UserEntity;
import com.yunqiao.service.api.form.ForgetPasswordForm;
import com.yunqiao.service.api.form.LoginForm;
import com.yunqiao.service.api.form.RegisterForm;

/**
 * @program: server
 * @description:
 * @author: Crocutax
 * @company: 今日速运
 * @e-mail: wangxw725@163.com
 * @create: 2019-03-04 14:27
 **/
public interface AppAccountService {


    /**
     * 用户登录
     * @param form    登录表单
     * @return        返回用户ID
     */
    UserEntity login(LoginForm form);

    /**
     * 注册
     * @param form
     */
    Long register(RegisterForm form);

    void forgerPassword(ForgetPasswordForm forgetPasswordForm);
}
